package com.xing.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_resource")
@AllArgsConstructor
@NoArgsConstructor
public class SysMenuEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -54979041104113736L;

    @TableId(type = IdType.NONE)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String name;
    private String description;
    private String url;
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;
    private Integer delFlag;
}
